﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Windows.Forms;

namespace Aspfm.Config
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            ProcessStartInfo psi = new ProcessStartInfo();
            psi.WorkingDirectory = AppDomain.CurrentDomain.BaseDirectory;
            psi.FileName = "Aspfm.Design.exe";//调动aspfm设计器
            if (args != null && args.Length > 0 && System.IO.File.Exists(args[0]))
            {
                psi.Arguments = args[0];
            }
            else
            {
                psi.Arguments = System.IO.Path.GetFileNameWithoutExtension(System.Windows.Forms.Application.ExecutablePath);
            }
            psi.UseShellExecute = false;
            psi.CreateNoWindow = true;
            Process.Start(psi);
        }
    }
    

}
